#
# Be sure to run `pod lib lint LKPrivateAlamofire.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
  s.name             = 'LKPrivateAlamofire'
  s.version          = '0.1.2'
  s.summary          = 'LKPrivateAlamofire. - netWorking 修复请求错误返回回调'

# This description is used to generate tags and improve search results.
#   * Think: What does it do? Why did you write it? What is the focus?
#   * Try to keep it short, snappy and to the point.
#   * Write the description between the DESC delimiters below.
#   * Finally, don't worry about the indent, CocoaPods strips it!

  s.description      = <<-DESC
TODO: Add long description of the pod here.
                       DESC

  s.homepage         = 'https://gitee.com/leikee/LKPrivateAlamofire'
  # s.screenshots     = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { 'leike' => 'leike88n@163.com' }
  s.source           = { :git => 'https://gitee.com/leikee/LKPrivateAlamofire.git', :tag => s.version.to_s }
  # s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'

#  s.ios.deployment_target = '10.0'
  s.ios.deployment_target = '13.0'
  s.swift_version = '5.0'

  #如果不选模块。默认为 APINetwork
  s.default_subspec = "APINetwork"
  
#  s.source_files = 'LKPrivateAlamofire/Classes/APINetwork/APIRequest/**/*'


  # APINetwork 子模块
  s.subspec 'APINetwork' do |sp|
    sp.source_files = 'LKPrivateAlamofire/Classes/APINetwork/**/*'
    sp.dependency "Moya"  #, '~>15.0.0'
    sp.dependency 'HydraAsync'  #, '~>2.0.6' #异步处理
  end
end
  
  
#  # APINetwork 子模块
#  s.subspec 'APINetwork+RX' do |sp|
#    sp.source_files = 'LKPrivateAlamofire/Classes/APINetwork+RX/**/*'
#    sp.dependency "LKPrivateAlamofire/APINetwork"
#    sp.dependency 'RxSwift'
#    sp.dependency "Moya/RxSwift"
#  end
#  
  
  #    sp.dependency "LKPrivateBaseKit/Extension"
     # 网络请求
     #因为项目中使用了Moya这个框架，其对Alamofire有依赖5.0以上，但是从Alamofire 5.5.0版本开始便使用了 Concurrency 库来支持并发编程，但是Concurrency.framework仅支持iOS13以上系统版本，因此需要针对Alamofire需要特别指定版本号 5.4.4
     #Alamofire 支持iOS12 可能要降级到5.4.4    当前 Alamofire (5.7.1)
  
  # s.resource_bundles = {
  #   'LKPrivateAlamofire' => ['LKPrivateAlamofire/Assets/*.png']
  # }

  # s.public_header_files = 'Pod/Classes/**/*.h'
  # s.frameworks = 'UIKit', 'MapKit'
  # s.dependency 'AFNetworking', '~> 2.3'
#end
